package com.graduation.rescuematerial.vo;


import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * @Author:ZhaoXinYi
 * @FileName:
 * @Date:Created in  2022/04/02 23:41
 * @Version:
 * @Description:公共返回对象枚举
 */
@Getter
@ToString
@AllArgsConstructor
public enum  RespBeanEnum {
    //    通用
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"服务端异常"),
    //    登录
    LOGIN_ERROR(500210,"用户名或密码错误！"),
    LOGIN_ERROR_NOT_EXIST(500211,"不存在该用户"),
    PASSWORD_ERROR(500212,"密码不正确"),
    MOBILE_ERROR(500213,"手机号码格式不正确"),
    VERIFY_USER_ERROR(500214,"用户审核未通过"),
    STATUS_USER_ERROR(500215,"该用户已注销"),
    VERIFY_COMPANY_ERROR(500216,"所在组织未通过审核"),
    STATUS_COMPANY_ERROR(500217,"该组织已注销"),
    NOT_JOIN_COMPANY(500218,"未加入任何组织"),
    //    异常
    BIN_ERROR(500218,"参数校验异常"),
    EMAIL_ERROR(500219,"验证码发送失败"),
    NO_OPERATION_PERMISSION(500200,"没有操作权限"),
    ILLEGAL_OPERATION(500201,"非法操作"),

    //注册
    REGISTER_ERROR(5003110,"注册失败"),
    DUPLICATEKEY_ERROR(5003111,"该手机号已被注册"),
    IDENTIFYNUMBER_ERROR(5003112,"身份证号格式错误"),
    COMPANY_NOTFOUND(5003113,"部门不存在"),
    COMPANY_REPEAT(5003114,"部门已存在,请重新输入名称"),
    COMAPNY_HAS_RIGISTERED(5003115,"该部门名已被注册！"),

    //空数据
    EMPTY_IMG_DATA(5004001,"图片为空"),
    UPLOAD_IMG_ERROR(5005001,"图片上传失败"),

    //发布信息
    PUBLISH_ERROR(5006001,"发布失败"),

    //修改数据
    UPDATE_ERROR(5007001,"更新失败"),
    INSERT_ERROR(5007002,"添加失败")




    //    秒杀模块5005XX
//    EMPTY_STOCK(500500,"库存不足"),
//    REPEATE_ERROR(500501,"每人限购一件"),
//
//    //不符合秒杀条件
//    UNQUALIFIED(20001,"不符合参与活动条件"),
//    OVERDUE_UNQUALIFIED(200002,"您有逾期未归还，请及时处理"),
//    AGE_UNQUALIFIED(200003,"不符合参与该活动年龄")
    ;


    private final Integer status;
    private final String msg;
}
